﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for SortTypeOfTrainnings
/// </summary>
public class SortTypeOfTrainnings : IComparer<TypeOfTrainning>
{
    public int Compare(TypeOfTrainning train1, TypeOfTrainning train2)
    {
        return (train1.TrainID < train2.TrainID) ? 1 : ((train1.TrainID > train2.TrainID) ? -1 : 0);
    }
}